const build='/api'
const apiText={
	GetMemberListToExcel:build+'/Member/GetMemberListToExcel',
	GetHotelOrderToExcel:build+'/Order/GetHotelOrderToExcel',
	CreatePaymentToExportExcel:build+'/Order/CreatePaymentToExportExcel',
	GetBaseOrderByPageToExcel:build+'/Order/GetBaseOrderByPageToExcel',
}
const api={
	login:{post:build+'/user/login'},
	loginOut:{post:build+'/user/logout'},
	SendResetPwdSmsCode:{get:build+'/Users/SendResetPwdSmsCode'},
	ResetPassword:{post:build+'/Users/ResetPassword'},
	upLoadImg:{post:build+'/Upload/uploadimage'},
	querylistbypid:{get:build+'/Area/QueryChinaAreasByPid'},
	GetBlocInfoById:{get:build+'/Organization/GetOrganizationById'},
	SaveBlocInfo:{post:build+'/Organization/SaveOrganization'},
	GetHotelInfoByPage:{get:build+'/Organization/QueryOrganizationByPage'},
	TriggerHotelInfo:{get:build+'/Organization/TriggerHotelInfo'},
	GetStoreList:{get:build+'/Organization/GetStoreList'},
	GetRoomPolicyByCategoryId:{get:build+'/Hotel/GetRoomPolicyByCategoryId'},
	GetRoomCategoryByHotelId:{get:build+'/Hotel/GetRoomCategoryByHotelId'},
	GetHotelInfoById:{get:build+'/Organization/GetHotelDetailViewById'},
	SaveHotelInfo:{post:build+'/Organization/SaveHotelInfo'},
	GetRoomCategoryList:{get:build+'/RoomCategory/GetRoomCategoryList'},
	GetRoomCategory:{get:build+'/RoomCategory/GetRoomCategory'},
	SaveRoomCategory:{post:build+'/RoomCategory/SaveRoomCategory'},
	DeleteRoomCategory:{get:build+'/RoomCategory/DeleteRoomCategory'},
	SaveRoomCategoryPolicy:{post:build+'/RoomCategory/SaveRoomCategoryPolicy'},
	GetRoomCategoryPolicyList:{get:build+'/RoomCategory/GetRoomCategoryPolicyList'},
	DeleteRoomCategoryPolicy:{get:build+'/RoomCategory/DeleteRoomCategoryPolicy'},
	CreateRoomCategoryPriceBatch:{post:build+'/RoomCategory/CreateRoomCategoryPriceBatch'},
	initroominventorybatch:{get:build+'/RoomCategory/initroominventorybatch'},
	GetSingleProductByPage:{get:build+'/SingleProduct/GetSingleProductByPage'},
	SaveSingleProduct:{post:build+'/SingleProduct/SaveSingleProduct'},
	GetSingleProductById:{get:build+'/SingleProduct/GetSingleProductById'},
	DeleteSingleProduct:{get:build+'/SingleProduct/DeleteSingleProduct'},
	TriggerSingleProduct:{get:build+'/SingleProduct/TriggerSingleProduct'},
	GetSingleProductByType:{get:build+'/SingleProduct/GetSingleProductByType'},
	GetRoomCategoryPriceList:{post:build+'/RoomCategory/GetRoomCategoryPriceList'},
	ModifyPriceById:{post:build+'/RoomCategory/ModifyPriceById'},
	getroomstatus:{post:build+'/Room/getroomstatus'},
	SetRoomDC:{post:build+'/Room/SetRoomDC'},
	LockRoom:{post:build+'/Room/LockRoom'},
	UnlockRoom:{post:build+'/Room/UnlockRoom'},
	GetLockRoomDetail:{get:build+'/Room/GetLockRoomDetail'},
	GetAvailableRooms:{post:build+'/Room/GetAvailableRooms'},
	GetRoomInventorySimple:{post:build+'/Room/GetRoomInventorySimple'},
	GetRoomInventoryBaseCategory:{post:build+'/Room/GetRoomInventoryBaseCategory'},
	GetHotelZoneList:{get:build+'/Room/GetHotelZoneList'},
	GetHotelZoneFloorList:{get:build+'/Room/GetHotelZoneFloorList'},
	GetRoomBelongZoneFloor:{get:build+'/Room/GetRoomBelongZoneFloor'},
	DeleteZone:{get:build+'/Room/DeleteZone'},
	DeleteZoneFloor:{get:build+'/Room/DeleteZoneFloor'},
	SaveRoomZoneFloorBelong:{post:build+'/Room/SaveRoomZoneFloorBelong'},
	SaveZone:{post:build+'/Room/SaveZone'},
	AddZoneFloor:{post:build+'/Room/AddZoneFloor'},
	deleteroom:{get:build+'/RoomCategory/deleteroom'},
	changehotel:{get:build+'/User/changehotel'},
	GetUserListByOrgId:{get:build+'/User/GetUserListByOrgId'},
	GetUsersListByPage:{get:build+'/Users/GetUsersListByPage'},
	getuser:{get:build+'/Users/getuser'},
	GetCurrentUserRoles:{get:build+'/Users/GetCurrentUserRoles'},
	saveuser:{post:build+'/Users/saveuser'},
	deleteuser:{get:build+'/Users/deleteuser'},
	AttributeUserRoles:{post:build+'/Users/AttributeUserRoles'},
	Orderplaceorder:{post:build+'/Order/placeorder'},
	placeblocorder:{post:build+'/Order/placeblocorder'},
	getorderdetail:{post:build+'/Order/getorderdetail'},
	GetBlocOrderDetail:{post:build+'/Order/GetBlocOrderDetail'},
	GetOrderDetailForPrint:{post:build+'/Order/GetOrderDetailForPrint'},
	ChangeOrder:{post:build+'/Order/ChangeOrder'},
	ChangeBlocOrder:{post:build+'/Order/ChangeBlocOrder'},
	CancelOrder:{post:build+'/Order/CancelOrder'},
	CheckOutOrder:{post:build+'/Order/CheckOut'},
	CheckInOrder:{post:build+'/Order/CheckIn'},
	GetOrderForSetRoom:{get:build+'/Order/GetOrderForSetRoom'},
	GetHotelOrderCount:{get:build+'/Order/GetHotelOrderCount'},
	OrderSetRoom:{post:build+'/Order/OrderSetRoom'},
	GetOrderLog:{get:build+'/OrderLog/GetOrderLog'},
	GetHotelOrderByPage:{post:build+'/Order/GetHotelOrderByPage'},
	BlocReserveQuery:{get:build+'/Order/BlocReserveQuery'},
	ChangeHotelOrder:{post:build+'/Order/ChangeHotelOrder'},
	getcashierrecords:{get:build+'/OrderCashierDesk/getcashierrecords'},
	savecashierrecord:{post:build+'/OrderCashierDesk/savecashierrecord'},
	deleteordercashierrecord:{get:build+'/OrderCashierDesk/deleteordercashierrecord'},
	Channels:{post:build+'/Common/Channels'},
	PayTypes:{post:build+'/Common/PayTypes'},
	GetMemberListByPage:{get:build+'/Member/GetMemberListByPage'},
	SaveMember:{post:build+'/Member/SaveMember'},
	DeleteMember:{get:build+'/Member/DeleteMember'},
	QueryMember:{get:build+'/Member/QueryMember'},

	savepolicy:{post:build+'/HotelPrice/savepolicy'},
	deletepolicy:{get:build+'/HotelPrice/deletepolicy'},
	getpolicylist:{get:build+'/HotelPrice/getpolicylist'},
	getpolicypricecalendarbymonth:{get:build+'/HotelPrice/getpolicypricecalendarbymonth'},
	gethotelpricecalendar:{get:build+'/HotelPrice/gethotelpricecalendar'},
	setspecialprice:{post:build+'/HotelPrice/setspecialprice'},
	getpricepolicytypes:{get:build+'/HotelPrice/getpricepolicyconfigtypes'},
	GetConfigList:{get:build+'/HotelPrice/GetConfigList'},
	singlepolicyprice:{get:build+'/OrderPriceCalc/singlepolicyprice'},

	getpricepolicyconfigs:{get:build+'/HotelPrice/getpricepolicyconfigs'},
	deletepricepolicyconfig:{get:build+'/HotelPrice/deletepricepolicyconfig'},
	savepricepolicyconfig:{post:build+'/HotelPrice/savepricepolicyconfig'},

	getrole:{get:build+'/Role/getrole'},
	getallrolelist:{get:build+'/Role/getallrolelist'},
	GetRoleListByPage:{get:build+'/Role/GetRoleListByPage'},
	deleterole:{get:build+'/Role/deleterole'},
	saverole:{post:build+'/Role/saverole'},
	PackageAuthorities:{post:build+'/Role/PackageAuthorities'},
	GetAuthorities:{get:build+'/Role/GetAuthorities'},
	GetAllAuthority:{get:build+'/Authority/GetAllAuthority'},

	GetCache:{get:build+'/Cache/GetCache'},
	RemoveCache:{get:build+'/Cache/RemoveCache'},
	//实时房态
	GetActualRoomStatus:{post:build+'/Room/GetActualRoomStatus'},
	BathSetRoomDC:{post:build+'/Room/BathSetRoomDC'},
	ArrangeRoomClean:{post:build+'/Room/ArrangeRoomClean'},
	GetHotelCleanerList:{get:build+'/Room/GetHotelCleanerList'},
	GetZoneFloorList:{get:build+'/Room/GetZoneFloorList'},
	//资源管理
	GetAllDepartment:{get:build+'/Organization/GetAllDepartment'},
	//报表
	GetHotelOrderRevenue:{get:build+'/Order/GetHotelOrderRevenue'},
	SendSMS:{post:build+'/SMS/SendSMS'},
	GetCheckInNoticeSMS:{get:build+'/Order/GetCheckInNoticeSMS'},
	//出租率统计
	GetRoomCategoryInventory:{post:build+'/Room/GetRoomCategoryInventory'},

	//配置维护
	GetConfigTypeList:{get:build+'/ConfigItem/GetConfigTypeList'},
	GetAllConfigTypeSelectItems:{get:build+'/ConfigItem/GetAllConfigTypeSelectItems'},
	DeleteConfigType:{get:build+'/ConfigItem/DeleteConfigType'},
	SaveConfigType:{post:build+'/ConfigItem/SaveConfigType'},
	GetConfigItemList:{get:build+'/ConfigItem/GetConfigItemList'},
	DeleteConfigItem:{get:build+'/ConfigItem/DeleteConfigItem'},
	SaveConfigItem:{post:build+'/ConfigItem/SaveConfigItem'},

	//旅行社维护
	GetConfigTypeList:{get:build+'/TravelAgency/GetAllTravelAgencyByHotelId'},
	DeleteTravelAgency:{get:build+'/TravelAgency/DeleteTravelAgency'},
	SaveTraveAgency:{post:build+'/TravelAgency/SaveTraveAgency'},
	//集团订单
	GetBaseOrderByPage:{get:build+'/Order/GetBaseOrderByPage'},
	GetConfigByTypeCode:{get:build+'/ConfigItem/GetConfigByTypeCode?typeCode=hotel_hints'},
}

let httpapi=[];
Object.entries(api).forEach(i=>{
    Object.entries(i[1]).forEach(k=>{
      httpapi.push({type:k[0],api:k[1],name:i[0]});
    })
})
export default {httpapi,apiText}
